package com.ruoyi.system.controller;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.domain.RedStories;
import com.ruoyi.system.service.IRedStoriesService;

/**
 * 红色故事Controller
 */
@RestController
@RequestMapping("/redStories")
public class RedStoriesController {

    @Autowired
    private IRedStoriesService redStoriesService;

    /**
     * 查询红色故事列表
     */
    @GetMapping("/list")
    public R<List<RedStories>> list() {
        List<RedStories> list = redStoriesService.selectRedStoriesList();
        return R.ok(list);
    }
}